<include file="Public:header" />
<include file="Public:left" />
<style>
    td {
        text-align: center;
    }
</style>
<style type="text/css" src="__STATIC__/admin/css/style.css" ></style>
<style type="text/css" src="__STATIC__/admin/js/laydate/need/laydate.css" ></style>
<script src="__STATIC__/admin/js/laydate/laydate.js"></script>
<section>
    <div class="page_title">
        <h2 class="fl">客服列表</h2>
        <a href="{:url('Chat/add')}" style="float: right;">添加</a>
    </div>
    <table class="table">
        <tr>
            <th>客服昵称</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>

        <volist name="list" id="vo" key="k">
        <tr>
            <td>{$vo.nickname}</td>
            <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
            <td>
                <a href="{:url('Chat/chat',array('id'=>$vo['id']))}" class="inner_btn">聊天</a>
                <a href="{:url('Chat/edit_kefu_name',array('id'=>$vo['id']))}" class="inner_btn">编辑</a>
                <a href="{:url('Chat/del_kefu_name',array('id'=>$vo['id']))}" class="inner_btn">删除</a>
            </td>
        </tr>
        </volist>
    </table>
    {$list->render()}
</section>

<!--tabStyle-->
<script>
    $(document).ready(function() {
        //tab
        $(".admin_tab li a").click(function() {
            var liindex = $(".admin_tab li a").index(this);
            $(this).addClass("active").parent().siblings().find("a").removeClass("active");
            $(".admin_tab_cont").eq(liindex).fadeIn(150).siblings(".admin_tab_cont").hide();
        });
    });
</script>

</div>
</section>
</body>

</html>